﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MyAccount.aspx.cs" Inherits="FHost1.FormMyAccount" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#MainContent_btnUpdateInfo").button();
            $("#MainContent_btnUpdatePass").button();
        });
        $(function () {
            $("#accordion1").accordion();
            $("#accordion2").accordion();
        });

    </script>
    <div style="margin: 50px;">
        <div id="accordion1">
            <h3>
                <a href="#">Personal Info</a></h3>
            <div>
                Name<br />
                <asp:TextBox ID="txtName" CssClass="searchtxt ui-accordion ui-corner-all" Style="width: 300px;"
                    runat="server"></asp:TextBox>
                <br />
                <br />
                <span>Email ID</span><br />
                <asp:TextBox ID="txtEmailID" CssClass="searchtxt ui-accordion ui-corner-all" Style="width: 300px;"
                    runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Button ID="btnUpdateInfo" Style="float: right;" runat="server" Text="Update Info"
                    OnClick="btnUpdateInfo_Click" ValidationGroup="info" />
            </div>
        </div>
        <asp:RequiredFieldValidator ID="rfvName" runat="server" 
            ControlToValidate="txtName" Display="None" ErrorMessage="Enter name" 
            ValidationGroup="info"></asp:RequiredFieldValidator>
        <asp:ValidatorCalloutExtender ID="rfvName_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="rfvName">
        </asp:ValidatorCalloutExtender>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
            ControlToValidate="txtEmailID" Display="None" ErrorMessage="Enter email id" 
            ValidationGroup="info"></asp:RequiredFieldValidator>
        <asp:ValidatorCalloutExtender ID="rfvEmail_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="rfvEmail">
        </asp:ValidatorCalloutExtender>
        <asp:RegularExpressionValidator ID="revEmail" runat="server" 
            ControlToValidate="txtEmailID" Display="None" ErrorMessage="Invalid email id" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ValidationGroup="info"></asp:RegularExpressionValidator>
        <asp:ValidatorCalloutExtender ID="revEmail_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="revEmail">
        </asp:ValidatorCalloutExtender>
        <br />
        <div id="accordion2">
            <h3>
                <a href="#">Password</a></h3>
            <div>
                New Password<br />
                <asp:TextBox ID="txtPassword" TextMode="Password" CssClass="searchtxt ui-accordion ui-corner-all" Style="width: 300px;"
                    runat="server"></asp:TextBox>
                <br />
                <br />
                <span>Retype Password</span><br />
                <asp:TextBox ID="txtPassword1" TextMode="Password" CssClass="searchtxt ui-accordion ui-corner-all" Style="width: 300px;"
                    runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Button ID="btnUpdatePass" Style="float: right;" runat="server" Text="Update Password"
                    OnClick="btnUpdatePass_Click" ValidationGroup="pass" />
                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                    ControlToValidate="txtPassword" Display="None" ErrorMessage="Enter password" 
                    ValidationGroup="pass"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="rfvPassword1" runat="server" 
                    ControlToValidate="txtPassword1" Display="None" ErrorMessage="Retype password" 
                    ValidationGroup="pass"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cvPassword" runat="server" 
                    ControlToCompare="txtPassword" ControlToValidate="txtPassword1" Display="None" 
                    ErrorMessage="Password mismatch" ValidationGroup="pass"></asp:CompareValidator>
            </div>
        </div>
    </div>
</asp:Content>
